package com.zhong.blog.service;

import com.zhong.blog.pojo.User;

import java.util.List;

public interface UserService {
    void save(User user);

    int query(User user);

    User findByName(String username);

    boolean checkLogin(String username, String password);

    User findById(Integer userId);

    List<User> queryByName(String name);

    List<User> queryAll();

    int update(User user);
}
